/**
 * Author:yuiop
 * Date:2022/3/23 10:26
 */
package com.devops.shiro.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.devops.admin.model.BaseUser;
import com.devops.admin.po.DOSBaseUserPo;
import com.devops.admin.po.DOSUserPo;
import com.devops.shiro.vm.DOSUserVM;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DOSBaseUserMapper extends BaseMapper<BaseUser> {
     BaseUser getBaseUser();
     Page<DOSBaseUserPo> getPageUsers(@Param("param") DOSUserVM dosUserVM, Page page);
     DOSBaseUserPo getBaseUserByLoginName(String loginName);
     List<DOSUserPo> getAllUser(Integer projectId);

     List<DOSBaseUserPo> getUserByLoginName(String loginName);
     List<DOSBaseUserPo> getUserByApiToken(String loginName);

     /**
      * @Author heyabo
      * @Description 获取技术经理列表
      * @Date 17:03 2022/9/5
      * @Param []
      * @return java.util.List<com.devops.admin.model.BaseUser>
      **/
    List<BaseUser> getTechnologyManager();
}
